LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2012, 06:07 PM   #1
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
webpage contains check through nagios


Does any one has any idea how we can check if the contains of the webpage is the same as the previous one or is there a way in nagios to check if the webpage contains has changed. Thank you
 
Old 05-16-2012, 02:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
to check if it's changed, I would write a check script that would use curl to grab the page and save it to disk (or take an MD5sum of the page data), and then pick up that file next time and compare it. The point of nagios check scripts (which are awful) is that they're just an arbitrary script with a predefined output, so just write your own script to do this.
 
Old 05-16-2012, 01:55 PM   #3
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Original Poster
Rep: Reputation: 6
thank you acid_kewpie, I did read that "md5 program was originally developed as part of a suite of tools intended to monitor large collections of files (for example, the contents of a Web site)" but I couldnt find any site to learn how to create MD5sum webpage, it's not like creating MD5sum iso files .
 
Old 05-16-2012, 02:44 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
it is, I just don't think you understand what I'm talking about. You can pipe any data into md5sum:

Code:
[chris@thinkpad ~]$ curl 2>/dev/null google.com | md5sum
d4b691cd9d99117b2ea34586d3e7eeb8  -
for example
 
1 members found this post helpful.
Old 05-16-2012, 07:35 PM   #5
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Original Poster
Rep: Reputation: 6
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios check resource djackbloodshed Ubuntu 2 03-30-2011 11:26 AM
embed table from nagios status page on differnet webpage with maybe iframe? sinbsd Programming 0 05-08-2008 01:57 PM
Can you check to see if my webpage loads? nomb General 15 01-30-2007 09:13 AM
nagios check service noir911 Linux - Networking 5 07-24-2006 06:12 PM
Nagios and Check.cgi kopite2012 Linux - Newbie 1 04-08-2004 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration